package cn.hhy.org.query;

public class BaseQuery {

    // 页码
    private Long number = 1L;

    // 每页展示条数
    private Integer pageSize = 5;

    public BaseQuery() {
    }
    public Long getShow(){
        return ((this.number-1)*this.pageSize);
    }

    public BaseQuery(Long number, Integer pageSize) {
        this.number = number;
        this.pageSize = pageSize;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
